﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;

namespace RZRQ_ChooseStock_Model.Codes
{
    public class DB
    {
        private string strDbType { get; set; }

        public DB()
        {
            this.strDbType = "SQLSERVER";
        }

        public SqlConnection GetConnection()
        {
            SqlConnection sqlConn = new SqlConnection();
            sqlConn.ConnectionString = ConfigurationManager.ConnectionStrings[this.strDbType].ConnectionString;
            return sqlConn;            
        }

        //public SqlDataAdapter GetDataAdapter()
        //{
        //    SqlDataAdapter sqlAdapter = new SqlDataAdapter();
        //    sqlAdapter.
        //}
        //public DataSet GetDataSet()
        //{
        //    SqlConnection sqlConn = GetConnection();

        //}

    }
}
